import React, {Component} from 'react'
import { Provider } from 'react-redux'
import { store } from './store'
import { Editor } from './Editor'
import HTML5Backend from 'react-dnd-html5-backend'
import { DragDropContext } from 'react-dnd'

@DragDropContext(HTML5Backend, /* optional */ { window })
class FlowEditor extends Component {
  render ()  {

      return (
          <div id="editorRoot">
              <Provider store={store}>
                  <Editor/>
              </Provider>

          </div>

      )
  };
};

export default FlowEditor
